<template>
   <div class="mytab_back"></div>
   <div class="mytab">
    <RightTopSeting></RightTopSeting>
    <div class="mytab_form">
      <form action="http://www.baidu.com/baidu" target="_blank">
        <div>
          <input name=tn type=hidden value=baidu>
          <!-- <a href="http://www.baidu.com/">
            <img src="http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif" alt="Baidu"border="0">
          </a> -->
          <input class="search_inpu" type=text name=word size=30 />
        </div>
      </form>
    </div>
    <div id="collection_body">
      <CollentionRight />
      <!-- <a-row style="height:100%" :gutter="50">
        <a-col :xs="0" :sm="0" :md="0" :lg="8">
          <div class="collection_left">
             <div class="collection_items">
                <div class="collection_type">
                  <img src="../../assets/typetip.svg" alt="">
                  <span>
                        <div class="website-icon" style="background-image: -webkit-image-set(url(chrome://favicon2/?size=16&scale_factor=1x&page_url=https%3A%2F%2Fwww.it1352.com%2F2077088.html&allow_google_server_fallback=0) 1x, url(chrome://favicon2/?size=16&scale_factor=2x&page_url=https%3A%2F%2Fwww.it1352.com%2F2077088.html&allow_google_server_fallback=0) 2x);"></div>
                  </span>
                </div>
                <div class="collection_list">
                  <div class="collection_item">
                    <img class="col_item_img" src="../../assets/tip.svg" alt="">
                    <div class="col_item_title">网址标题1</div>
                  </div>
                </div>
              </div>
              <div class="collection_items">
                <div class="collection_type">
                  <img src="../../assets/typetip.svg" alt="">
                  <span>第一个分类</span>
                </div>
                <div class="collection_list">
                  <div class="collection_item">
                    <img class="col_item_img" src="../../assets/tip.svg" alt="">
                    <div class="col_item_title">网址标题1</div>
                  </div>
                </div>
              </div>
          </div>
        </a-col>
        <a-col :xs="24" :sm="24" :md="24" :lg="16">
        右侧主题书签栏
          <CollentionRight />
        </a-col>
      </a-row> -->
    </div>
  </div>
</template>

<script setup lang="ts">
import useThemeConfig from '@/hooks/useThemeConfig';

// 右侧主题书签栏组件
import CollentionRight from './CollectionRight/index.vue'
// 主页设置组件
import RightTopSeting from './RightTopSeting/index.vue'

const {
  theme
}= useThemeConfig()
</script>
<style lang="less" scoped>
@keyframes back {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
.website-icon{
    background-repeat: no-repeat;
    height: 16px;
    margin: 2px;
    width: 16px;
}
.mytab_back{
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: v-bind('theme.background');
  z-index: -1;
  animation: back 5s;
}
.mytab{
  height: 100%;
  background: transparent;
  display: flex;
  flex-flow: column;
  padding: 10px;
  padding-top: 0px;
  /* 主题颜色设置 start */
  /* 深色系 */
  :focus-visible{
    outline: transparent;
  }

  /* 搜索框start */
  .mytab_form{
    position: relative;
    min-height: 145px;
  }
  .mytab_form > form{
    display: inline-block;
    position: absolute;
    width: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
  }
  .search_inpu{
    color: black;
    width: 100%;
    font-size: 16px;
    padding-left: 20px;
    line-height: 40px;
    border-radius: 3px;
    border-color: transparent;
    box-shadow: 0px 0px 15px 5px rgba(0,0,0,.1);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
  }
  /* 搜索框end */


  /* 收藏列表start */
  #collection_body{
    flex: auto;
    // overflow: hidden;
    // background: transparent;
  }
  #collection_body {
    .collection_left{
      display: flex;
      height: 100%;
      .collection_items{
        flex: 1;
        width: 100%;
        border-radius: 10px;
        display: flex;
        flex-flow: column;
        height: 100%;
        margin: 0px 15px;
        border-top: none;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
        position: relative;
        .bgAndShadow();
        // background: transparent;
        // .collection_type,.collection_list{
        //   z-index: 2;
        // }
        // &::after{
        //   content: "";
        //   display: inline-block;
        //   height: 100%;
        //   width: 100%;
        //   position: absolute;
        //   background: rgba(255,255,255,.5);
        //   z-index: 1;
        // }
      }
    }
  }
  #collection_body .collection_type{
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    color: 'white';
  }
  .collection_type img{
    width: 20px;
    height: 20px;
    margin: 0px 10px;
  }

  #collection_body .collection_list{
    padding: 0px 8px;
    flex: auto;
    overflow: auto;
    padding-bottom: 60px;
  }
  #collection_body .collection_item{
    display: flex;
    align-items: center;
    margin: 5px;
    height: 50px;
    /* width: 250px; */
    margin: 8px 0px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 7px;
    color: '#8f9091';
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -ms-border-radius: 7px;
    -o-border-radius: 7px;
    &:hover{
      background: rgba(0,0,0,.1);
    }
  }

  #collection_body .col_item_img{
    width: 25px;
    height: 25px;
    margin: 0px 20px;
  }
  #collection_body .col_item_title{
    flex: auto;
  }
  /* 收藏列表end */

}
</style>